package com.cskaoyan.day03.queue;

/**
 * @author stone
 * @date 2022/01/29 15:41
 */
public class LinkedQueueDemo {

    public static void main(String[] args) {
        LinkedQueue<String> queue = new LinkedQueue<>();
        queue.offer("H");
        queue.offer("A");
        queue.offer("P");
        queue.offer("P");
        queue.offer("Y");
        queue.offer("N");
        queue.offer("E");
        queue.offer("W");
        queue.offer("Year");

        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
    }
}
